<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>节点列表</title>
    <link rel="shortcut icon" href="__STATIC__/admin/images/favicon.ico">
    <link href="__STATIC__/admin/assets/css/bootstrap.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/font-awesome.min.css"/>
    <!--[if IE 7]>
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/font-awesome-ie7.min.css"/>
    <![endif]-->
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/ace.min.css"/>
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/ace-rtl.min.css"/>
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/ace-skins.min.css"/>
    <link rel="stylesheet" href="__STATIC__/admin/css/style.css"/>
    <link rel="stylesheet" href="__STATIC__/admin/css/node.css"/>
    <script src="__STATIC__/admin/js/jquery-1.9.1.min.js"></script>
    <script src="__STATIC__/admin/assets/layer/layer.js" type="text/javascript"></script>
</head>

<body>
<div class="crumbs">
    <ul>
        <li>
            <a href="javascript:;" class="active">管理员管理</a>
        </li>
    </ul>
</div>
<div id="wrap">
    <a href="javascrript:;">为【{$admin.username}】分配角色</a>
    <div class="app">
        <form action="{:url('rbac/distributionRole')}" method="post">
            <input type="hidden" name="admin_id" value="{$admin.admin_id}">
            <div>
                <input type="submit" class="btn btn-primary" value="提交">
            </div>

            <dl>
                {foreach $roles as $item}
                <dd>
                    <input type="checkbox" value="{$item.id}" name="roles[]"
                           {if condition="in_array($item.id,$has_roles_one)"}checked{/if}>
                    <span>{$item.remark}</span>
                </dd>
                {/foreach}
            </dl>

        </form>
    </div>
</div>

</body>

</html>
<script>

</script>